Integrand size = 33, antiderivative size = 463 \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \arctan \left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \arctan \left (1+\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1-\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}-\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1+\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d} \]
[Out]
Time = 0.93 (sec) , antiderivative size = 463, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3688, 3718, 3711, 3609, 3615, 1182, 1176, 631, 210, 1179, 642} \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\frac {2 b \left (22 a^2 B+27 a A b-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {\left (a^3 (A+B)+3 a^2 b (A-B)-3 a b^2 (A+B)-b^3 (A-B)\right ) \arctan \left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}-\frac {\left (a^3 (A+B)+3 a^2 b (A-B)-3 a b^2 (A+B)-b^3 (A-B)\right ) \arctan \left (\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{\sqrt {2} d}+\frac {2 \left (a^3 B+3 a^2 A b-3 a b^2 B-A b^3\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 \left (a^3 A-3 a^2 b B-3 a A b^2+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {\left (a^3 (A-B)-3 a^2 b (A+B)-3 a b^2 (A-B)+b^3 (A+B)\right ) \log \left (\tan (c+d x)-\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}-\frac {\left (a^3 (A-B)-3 a^2 b (A+B)-3 a b^2 (A-B)+b^3 (A+B)\right ) \log \left (\tan (c+d x)+\sqrt {2} \sqrt {\tan (c+d x)}+1\right )}{2 \sqrt {2} d}+\frac {2 b^2 (13 a B+9 A b) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d} \]
[In]
[Out]
Rule 210
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 1182
Rule 3609
Rule 3615
Rule 3688
Rule 3711
Rule 3718
Rubi steps \begin{align*} \text {integral}& = \frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}+\frac {2}{9} \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x)) \left (\frac {1}{2} a (9 a A-5 b B)+\frac {9}{2} \left (2 a A b+a^2 B-b^2 B\right ) \tan (c+d x)+\frac {1}{2} b (9 A b+13 a B) \tan ^2(c+d x)\right ) \, dx \\ & = \frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {4}{63} \int \tan ^{\frac {3}{2}}(c+d x) \left (-\frac {7}{4} a^2 (9 a A-5 b B)-\frac {63}{4} \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan (c+d x)-\frac {7}{4} b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^2(c+d x)\right ) \, dx \\ & = \frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {4}{63} \int \tan ^{\frac {3}{2}}(c+d x) \left (-\frac {63}{4} \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right )-\frac {63}{4} \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan (c+d x)\right ) \, dx \\ & = \frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {4}{63} \int \sqrt {\tan (c+d x)} \left (\frac {63}{4} \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right )-\frac {63}{4} \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \tan (c+d x)\right ) \, dx \\ & = \frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {4}{63} \int \frac {\frac {63}{4} \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right )+\frac {63}{4} \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan (c+d x)}{\sqrt {\tan (c+d x)}} \, dx \\ & = \frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {8 \text {Subst}\left (\int \frac {\frac {63}{4} \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right )+\frac {63}{4} \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{63 d} \\ & = \frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d}-\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\tan (c+d x)}\right )}{d} \\ & = \frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 d}+\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 \sqrt {2} d}+\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\tan (c+d x)}\right )}{2 \sqrt {2} d} \\ & = \frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1-\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}-\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1+\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d} \\ & = \frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \arctan \left (1-\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}-\frac {\left (3 a^2 b (A-B)-b^3 (A-B)+a^3 (A+B)-3 a b^2 (A+B)\right ) \arctan \left (1+\sqrt {2} \sqrt {\tan (c+d x)}\right )}{\sqrt {2} d}+\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1-\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}-\frac {\left (a^3 (A-B)-3 a b^2 (A-B)-3 a^2 b (A+B)+b^3 (A+B)\right ) \log \left (1+\sqrt {2} \sqrt {\tan (c+d x)}+\tan (c+d x)\right )}{2 \sqrt {2} d}+\frac {2 \left (a^3 A-3 a A b^2-3 a^2 b B+b^3 B\right ) \sqrt {\tan (c+d x)}}{d}+\frac {2 \left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \tan ^{\frac {3}{2}}(c+d x)}{3 d}+\frac {2 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)}{45 d}+\frac {2 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)}{63 d}+\frac {2 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2}{9 d} \\ \end{align*}
Result contains complex when optimal does not.
Time = 3.72 (sec) , antiderivative size = 221, normalized size of antiderivative = 0.48 \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\frac {2 \left (7 b \left (27 a A b+22 a^2 B-9 b^2 B\right ) \tan ^{\frac {5}{2}}(c+d x)+5 b^2 (9 A b+13 a B) \tan ^{\frac {7}{2}}(c+d x)+35 b B \tan ^{\frac {5}{2}}(c+d x) (a+b \tan (c+d x))^2+\frac {105}{2} (a-i b)^3 (i A+B) \left (-3 (-1)^{3/4} \arctan \left ((-1)^{3/4} \sqrt {\tan (c+d x)}\right )+\sqrt {\tan (c+d x)} (-3 i+\tan (c+d x))\right )+\frac {105}{2} (a+i b)^3 (-i A+B) \left (3 (-1)^{3/4} \text {arctanh}\left ((-1)^{3/4} \sqrt {\tan (c+d x)}\right )+\sqrt {\tan (c+d x)} (3 i+\tan (c+d x))\right )\right )}{315 d} \]
[In]
[Out]
Time = 0.04 (sec) , antiderivative size = 432, normalized size of antiderivative = 0.93
method | result | size |
derivativedivides | \(\frac {\frac {2 B \,b^{3} \left (\tan ^{\frac {9}{2}}\left (d x +c \right )\right )}{9}+\frac {2 A \,b^{3} \left (\tan ^{\frac {7}{2}}\left (d x +c \right )\right )}{7}+\frac {6 B a \,b^{2} \left (\tan ^{\frac {7}{2}}\left (d x +c \right )\right )}{7}+\frac {6 A a \,b^{2} \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}+\frac {6 B \,a^{2} b \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}-\frac {2 B \,b^{3} \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}+2 A \,a^{2} b \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )-\frac {2 A \,b^{3} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}+\frac {2 B \,a^{3} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}-2 B a \,b^{2} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )+2 A \,a^{3} \left (\sqrt {\tan }\left (d x +c \right )\right )-6 \left (\sqrt {\tan }\left (d x +c \right )\right ) A a \,b^{2}-6 \left (\sqrt {\tan }\left (d x +c \right )\right ) B \,a^{2} b +2 \left (\sqrt {\tan }\left (d x +c \right )\right ) B \,b^{3}+\frac {\left (-A \,a^{3}+3 A a \,b^{2}+3 B \,a^{2} b -B \,b^{3}\right ) \sqrt {2}\, \left (\ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}+\frac {\left (-3 A \,a^{2} b +A \,b^{3}-B \,a^{3}+3 B a \,b^{2}\right ) \sqrt {2}\, \left (\ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}}{d}\) | \(432\) |
default | \(\frac {\frac {2 B \,b^{3} \left (\tan ^{\frac {9}{2}}\left (d x +c \right )\right )}{9}+\frac {2 A \,b^{3} \left (\tan ^{\frac {7}{2}}\left (d x +c \right )\right )}{7}+\frac {6 B a \,b^{2} \left (\tan ^{\frac {7}{2}}\left (d x +c \right )\right )}{7}+\frac {6 A a \,b^{2} \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}+\frac {6 B \,a^{2} b \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}-\frac {2 B \,b^{3} \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}+2 A \,a^{2} b \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )-\frac {2 A \,b^{3} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}+\frac {2 B \,a^{3} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}-2 B a \,b^{2} \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )+2 A \,a^{3} \left (\sqrt {\tan }\left (d x +c \right )\right )-6 \left (\sqrt {\tan }\left (d x +c \right )\right ) A a \,b^{2}-6 \left (\sqrt {\tan }\left (d x +c \right )\right ) B \,a^{2} b +2 \left (\sqrt {\tan }\left (d x +c \right )\right ) B \,b^{3}+\frac {\left (-A \,a^{3}+3 A a \,b^{2}+3 B \,a^{2} b -B \,b^{3}\right ) \sqrt {2}\, \left (\ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}+\frac {\left (-3 A \,a^{2} b +A \,b^{3}-B \,a^{3}+3 B a \,b^{2}\right ) \sqrt {2}\, \left (\ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}}{d}\) | \(432\) |
parts | \(\frac {\left (A \,b^{3}+3 B a \,b^{2}\right ) \left (\frac {2 \left (\tan ^{\frac {7}{2}}\left (d x +c \right )\right )}{7}-\frac {2 \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}+\frac {\sqrt {2}\, \left (\ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}\right )}{d}+\frac {\left (3 A a \,b^{2}+3 B \,a^{2} b \right ) \left (\frac {2 \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}-2 \left (\sqrt {\tan }\left (d x +c \right )\right )+\frac {\sqrt {2}\, \left (\ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}\right )}{d}+\frac {\left (3 A \,a^{2} b +B \,a^{3}\right ) \left (\frac {2 \left (\tan ^{\frac {3}{2}}\left (d x +c \right )\right )}{3}-\frac {\sqrt {2}\, \left (\ln \left (\frac {1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}\right )}{d}+\frac {A \,a^{3} \left (2 \left (\sqrt {\tan }\left (d x +c \right )\right )-\frac {\sqrt {2}\, \left (\ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}\right )}{d}+\frac {B \,b^{3} \left (\frac {2 \left (\tan ^{\frac {9}{2}}\left (d x +c \right )\right )}{9}-\frac {2 \left (\tan ^{\frac {5}{2}}\left (d x +c \right )\right )}{5}+2 \left (\sqrt {\tan }\left (d x +c \right )\right )-\frac {\sqrt {2}\, \left (\ln \left (\frac {1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}{1-\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )+\tan \left (d x +c \right )}\right )+2 \arctan \left (1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )+2 \arctan \left (-1+\sqrt {2}\, \left (\sqrt {\tan }\left (d x +c \right )\right )\right )\right )}{4}\right )}{d}\) | \(591\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 6209 vs. \(2 (417) = 834\).
Time = 1.40 (sec) , antiderivative size = 6209, normalized size of antiderivative = 13.41 \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\int \left (A + B \tan {\left (c + d x \right )}\right ) \left (a + b \tan {\left (c + d x \right )}\right )^{3} \tan ^{\frac {3}{2}}{\left (c + d x \right )}\, dx \]
[In]
[Out]
none
Time = 0.36 (sec) , antiderivative size = 398, normalized size of antiderivative = 0.86 \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\frac {280 \, B b^{3} \tan \left (d x + c\right )^{\frac {9}{2}} + 360 \, {\left (3 \, B a b^{2} + A b^{3}\right )} \tan \left (d x + c\right )^{\frac {7}{2}} + 504 \, {\left (3 \, B a^{2} b + 3 \, A a b^{2} - B b^{3}\right )} \tan \left (d x + c\right )^{\frac {5}{2}} - 630 \, \sqrt {2} {\left ({\left (A + B\right )} a^{3} + 3 \, {\left (A - B\right )} a^{2} b - 3 \, {\left (A + B\right )} a b^{2} - {\left (A - B\right )} b^{3}\right )} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, \sqrt {\tan \left (d x + c\right )}\right )}\right ) - 630 \, \sqrt {2} {\left ({\left (A + B\right )} a^{3} + 3 \, {\left (A - B\right )} a^{2} b - 3 \, {\left (A + B\right )} a b^{2} - {\left (A - B\right )} b^{3}\right )} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, \sqrt {\tan \left (d x + c\right )}\right )}\right ) - 315 \, \sqrt {2} {\left ({\left (A - B\right )} a^{3} - 3 \, {\left (A + B\right )} a^{2} b - 3 \, {\left (A - B\right )} a b^{2} + {\left (A + B\right )} b^{3}\right )} \log \left (\sqrt {2} \sqrt {\tan \left (d x + c\right )} + \tan \left (d x + c\right ) + 1\right ) + 315 \, \sqrt {2} {\left ({\left (A - B\right )} a^{3} - 3 \, {\left (A + B\right )} a^{2} b - 3 \, {\left (A - B\right )} a b^{2} + {\left (A + B\right )} b^{3}\right )} \log \left (-\sqrt {2} \sqrt {\tan \left (d x + c\right )} + \tan \left (d x + c\right ) + 1\right ) + 840 \, {\left (B a^{3} + 3 \, A a^{2} b - 3 \, B a b^{2} - A b^{3}\right )} \tan \left (d x + c\right )^{\frac {3}{2}} + 2520 \, {\left (A a^{3} - 3 \, B a^{2} b - 3 \, A a b^{2} + B b^{3}\right )} \sqrt {\tan \left (d x + c\right )}}{1260 \, d} \]
[In]
[Out]
Timed out. \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\text {Timed out} \]
[In]
[Out]
Time = 38.61 (sec) , antiderivative size = 6774, normalized size of antiderivative = 14.63 \[ \int \tan ^{\frac {3}{2}}(c+d x) (a+b \tan (c+d x))^3 (A+B \tan (c+d x)) \, dx=\text {Too large to display} \]
[In]
[Out]